#!/usr/bin/python

import os, shutil
import sys
import random


address = '/home/gromain/DPF/'
picadd = '/home/gromain/Pictures/'
piccopy = int(sys.argv[1])
picstateFile = open(address + 'flickr/picstate', 'r')
picstate = int(picstateFile.read())
picstateFile.close()

for i in range(0,piccopy):
	num = random.randrange(0, picstate)
	source = picadd + 'old pics/pic' + str(num) + '.jpg'
	shutil.copy(source, picadd)

